﻿namespace WPForms.Phone.View
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using PhoneUtils.Services;

    /// <summary>
    /// View for a form section
    /// </summary>
    public partial class FormSection : UserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="FormSection" /> class.
        /// </summary>
        public FormSection()
        {
            // have to hack this
            this.SectionSelectCommand = ContainerLocator.Current.Resolve<WPForms.Phone.ViewModel.FormViewModel>().SectionSelectCommand;
            this.InitializeComponent();
        }

        /// <summary>
        /// Gets the section select command.
        /// </summary>
        public ICommand SectionSelectCommand { get; private set; }
    }
}
